Intern type names before registering the type to avoid unnecessary copies.
authorMatthias Clasen <mclasen@redhat.com>
Wed, 31 Aug 2005 15:18:41 +0000 (15:18 +0000)
committerMatthias Clasen <matthiasc@src.gnome.org>
Wed, 31 Aug 2005 15:18:41 +0000 (15:18 +0000)
2005-08-31  Matthias Clasen  <mclasen@redhat.com>

* io-ani-animation.c (gdk_pixbuf_ani_anim_iter_get_type)
(gdk_pixbuf_ani_anim_get_type):
* io-gif-animation.c (gdk_pixbuf_gif_anim_get_type)
(gdk_pixbuf_gif_anim_iter_get_type):
* gdk-pixbuf-loader.c (gdk_pixbuf_loader_get_type):
* gdk-pixbuf.c (gdk_pixbuf_get_type):
* gdk-pixbuf-animation.c (gdk_pixbuf_animation_get_type):
Intern type names before registering the type to avoid
unnecessary copies.

gdk-pixbuf/ChangeLog
gdk-pixbuf/gdk-pixbuf-animation.c
gdk-pixbuf/gdk-pixbuf-loader.c
gdk-pixbuf/gdk-pixbuf.c
gdk-pixbuf/io-ani-animation.c
gdk-pixbuf/io-gif-animation.c

index 87120f948530e03dcdf170d380ec246fa11b76fa..de7eb386a30b9e0ec5d91e0b09fe2217d9d65f6c 100644 (file)
@@ -1,3 +1,15 @@
+2005-08-31  Matthias Clasen  <mclasen@redhat.com>
+
+       * io-ani-animation.c (gdk_pixbuf_ani_anim_iter_get_type) 
+       (gdk_pixbuf_ani_anim_get_type): 
+       * io-gif-animation.c (gdk_pixbuf_gif_anim_get_type) 
+       (gdk_pixbuf_gif_anim_iter_get_type): 
+       * gdk-pixbuf-loader.c (gdk_pixbuf_loader_get_type): 
+       * gdk-pixbuf.c (gdk_pixbuf_get_type): 
+       * gdk-pixbuf-animation.c (gdk_pixbuf_animation_get_type): 
+       Intern type names before registering the type to avoid 
+       unnecessary copies.
+
 2005-08-30  Matthias Clasen  <mclasen@redhat.com>
 
        * gdk-pixbuf-io.c (format_check): Make this work again.
index ad4777416861cfdb49a08f0a24eaacbe958c3cc9..ad510bf2cd0930ab649c607d5be6272c43dca719 100644 (file)
@@ -105,7 +105,7 @@ gdk_pixbuf_animation_get_type (void)
                 };
                 
                 object_type = g_type_register_static (G_TYPE_OBJECT,
-                                                      "GdkPixbufAnimation",
+                                                      g_intern_static_string ("GdkPixbufAnimation"),
                                                       &object_info, 0);
         }
   
index a2a131c4cea94d252333f167c1f48b3b69317fde..6f9d6461a30c863dccdc198873384c9c7afa8993 100644 (file)
@@ -98,7 +98,7 @@ gdk_pixbuf_loader_get_type (void)
                         };
       
                         loader_type = g_type_register_static (G_TYPE_OBJECT,
-                                                              "GdkPixbufLoader",
+                                                              g_intern_static_string ("GdkPixbufLoader"),
                                                               &loader_info,
                                                               0);
                 }
index 084bd22086b115aefcd41fa7a253fdfde57f7667..8847c734e58a392e987155a3ecb446f35807f5c9 100644 (file)
@@ -78,7 +78,7 @@ gdk_pixbuf_get_type (void)
                 };
                 
                 object_type = g_type_register_static (G_TYPE_OBJECT,
-                                                      "GdkPixbuf",
+                                                      g_intern_static_string ("GdkPixbuf"),
                                                       &object_info, 0);
         }
   
index 07e70368a50f6563b9a686e8ff56938a9eccf478..1b9c8fccbd20f35a31e0bf5d626e840dc4be75a8 100644 (file)
@@ -62,7 +62,7 @@ gdk_pixbuf_ani_anim_get_type (void)
                 };
                 
                 object_type = g_type_register_static (GDK_TYPE_PIXBUF_ANIMATION,
-                                                      "GdkPixbufAniAnim",
+                                                      g_intern_static_string ("GdkPixbufAniAnim"),
                                                       &object_info, 0);
         }
         
@@ -204,7 +204,7 @@ gdk_pixbuf_ani_anim_iter_get_type (void)
                 };
                 
                 object_type = g_type_register_static (GDK_TYPE_PIXBUF_ANIMATION_ITER,
-                                                      "GdkPixbufAniAnimIter",
+                                                      g_intern_static_string ("GdkPixbufAniAnimIter"),
                                                       &object_info, 0);
         }
         
index c99a0805e574842a8cfb2709094b85f9675eeabb..57d460408028253542a663f0e23fe896a558a331 100644 (file)
@@ -63,7 +63,7 @@ gdk_pixbuf_gif_anim_get_type (void)
                 };
                 
                 object_type = g_type_register_static (GDK_TYPE_PIXBUF_ANIMATION,
-                                                      "GdkPixbufGifAnim",
+                                                      g_intern_static_string ("GdkPixbufGifAnim"),
                                                       &object_info, 0);
         }
         
@@ -219,7 +219,7 @@ gdk_pixbuf_gif_anim_iter_get_type (void)
                 };
                 
                 object_type = g_type_register_static (GDK_TYPE_PIXBUF_ANIMATION_ITER,
-                                                      "GdkPixbufGifAnimIter",
+                                                      g_intern_static_string ("GdkPixbufGifAnimIter"),
                                                       &object_info, 0);
         }